package com.ckm.service;

import com.ckm.annotation.MongoDS;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class Test2Service implements T2Service{

//    @Autowired
//    private TService tService;

    @Autowired
    private MongoTemplate mongoTemplate;

    @MongoDS("test4")
    @Override
    public void test() {
      log.info(mongoTemplate.getDb().getName());
//      tService.test2();
    }
}
